package com.nut.lmsc.api.merchant;

import com.nut.lmsc.jbb.JbbService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/merchant/pay")
public class PayController {

    @Autowired
    private JbbService jbbService;

    @RequestMapping("refund")
    public void refund(@RequestParam String payNo, @RequestParam Integer money) {
        jbbService.refund(payNo, money);
    }


}